package com.wfcm.exception;

public class WFCMException extends RuntimeException{

    private static final long serialVersionUID = 1L;
    private String msg ;
    private int errCode;

    public WFCMException() {
    }

    public WFCMException(String message, String msg, int errCode) {
        super(message);
        this.msg = msg;
        this.errCode = errCode;
    }

    public WFCMException( int errCode,String msg) {
        this.msg = msg;
        this.errCode = errCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String toString(){
        return "errorCode:"+errCode+"errorMsg : "+ msg;
    }
    
}
